
package com.lpf.transaction.dao;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

@Slf4j
@Repository
public class LogDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;

    public void addLog() {
        jdbcTemplate.update("insert into log values (null,'" + System.currentTimeMillis() + "');");
        log.error("addLog添加完毕!");
    }
}
